/*
 * @Author: wangyongcun
 * @Date: 2023-09-06 10:50:05
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-06-23 07:47:49
 * @Description: 全局配置文件
 */
export default {
  port: 8080,
  /*mysql配置*/
  mysqlConfig: {
    host: "localhost",
    port: "3306",
    user: "root",
    password: "123456",
    database: "maidi",
  },
  /*COS配置*/
  cosConfig: {
    secretId: "AKIDXWbddTBnInCWioohS6kLuMeoronieouF", //密钥id
    secretKey: "Z23AXs462qU0Piv5EMNPNIA1wpcHlAnL", //密钥key
    bucket: "7072-prod-4geovs2729fa51e0-1309870323", //存储桶
    region: "ap-shanghai", //地域
    prefix: "dev-", //文件key的前缀
  },
  /*鉴权配置*/
  authConfig: {
    valiteToken: false, //是否校验token
    secretKey: "maidizixun", //jwt密钥
    expiresIn: 1000 * 60 * 60 * 24,
    allowedPath: [
      "/api/login",
      "/api/loginOut",
      "/api/queryAssessList",
      "/api/queryFruitList",
      "/api/queryPolicy",
      "/api/queryPolicyType",
      "/api/queryPolicyList",
      "/api/queryProjectDic",
      "/api/queryCaseList",
      "/api/queryCase",
      "/api/downloadFile",
    ], // valiteToken为true时，需要忽略鉴权的路由和服务，如登录
  },
};
